package com.pengxun.manager.dao.system;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pengxun.manager.model.system.UserRole;
import com.szeastroc.common.jdbc.page.Page;

public interface UserRoleDao {
   public int insert(UserRole userRole);

   public int batchInsert(@Param("list") List<UserRole> list);

   public int update(UserRole userRole);
   
   public int delete(@Param("id") Integer id);
   
   public List<UserRole> findByPage(Page page);
   
   public List<UserRole> findByUserId(@Param("userId")Long userId);
   
   public int deleteByUserId(@Param("userId")Long userId);
   
   public int deleteByroleCode(@Param("roleCode")String roleCode);
}
